#include "proc.h"
#define SIZE 102
#define STYLE '='
#define ARR '>'
void process()
{
  const char* label = "|/-\\";
  char a[SIZE];
  memset(a, '\0', sizeof(a));
  int i = 0;
  while (i <= 100)
  {
    printf("[%-100s][%d%%][%c]\r", a, i, label[i % 4]);
    fflush(stdout);
    a[i++] = STYLE;
    if (i != 100)
    {
      a[i] = ARR;
    }
    usleep(100000);
  }
  printf("\n");
}
